﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDr_Repair_MidBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDr_Repair_Mid;

        void Remove(IDr_Repair_Mid entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IDr_Repair_Mid;


        /// <summary>
        /// 添加中修数据
        /// </summary>
        /// <param name="anni_name"></param>
        /// <param name="analy_year"></param>
        void Insert(string anniname, string analy_year);




        /// <summary>
        /// 决策路段的弯沉检测点总和
        /// </summary>
        /// <param name="segid">决策路段</param>
        /// <returns></returns>
        int Sgeid_RepdeflCount(string segid);

        /// <summary>
        /// 决策路段的平均弯沉值
        /// </summary>
        /// <param name="sgeid">决策路段</param>
        /// <returns></returns>
        double Sgeid_AvageRepdefl(string segid);

        /// <summary>
        /// 决策路段弯沉标准差  公式上部分
        /// </summary>
        /// <param name="segid">决策路段</param>
        /// <param name="avagerepdefl">决策路段的平均弯沉值</param>
        /// <returns></returns>
        double Segid_RepdeflCha(string segid, double avagerepdefl);

        /// <summary>
        /// 决策路段的计算弯沉值
        /// </summary>
        /// <returns></returns>
        double GetRepdefl(string segid);

        /// <summary>
        /// 决策路段原路面当量回弹模量
        /// </summary>
        /// <param name="segid"></param>
        /// <returns></returns>
        double GetELAMOD(string segid);

    }
}
